package com.vip.admin.modules.system.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 袜子离不开秋裤
 * @since 2020-01-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysResources implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId(value = "ID", type = IdType.AUTO)
	private Integer id;

	@TableField("PARENT_ID")
	private Integer parentId;

	@TableField("NAME")
	private String name;

	@TableField("URL")
	private String url;

	@TableField("ICON")
	private String icon;

	/**
	 * 组件path
	 */
	@TableField("COMPONENT")
	private String component;

	/**
	 * 跳转url
	 */
	@TableField("REDIRECT")
	private String redirect;

	/**
	 * 菜单、按钮、目录
	 */
	@TableField("TYPE")
	private Boolean type;

	/**
	 * 权限标识
	 */
	@TableField("PERMISSION_IDEN")
	private String permissionIden;

	/**
	 * 是否可以标记权限标识
	 */
	@TableField("PERMISSION_TYPE")
	private Boolean permissionType;

	@TableField("ORDER_NO")
	private Integer orderNo;

	/**
	 * 是否显示
	 */
	@TableField("IS_SHOW")
	private Boolean isShow;

	/**
	 * 打开方式:内部；外部
	 */
	@TableField("TARGET")
	private String target;

	@TableField("CREATOR")
	private String creator;

	@TableField("CREATE_TIME")
	private Date createTime;

	@TableField("UPDATOR")
	private String updator;

	@TableField("UPDATE_TIME")
	private Date updateTime;

	@TableField("IS_DEL")
	@TableLogic
	private Boolean isDel;

}
